package cn.yunhe.struts.controller;

import org.apache.struts2.ServletActionContext;
import cn.yunhe.struts.model.UserModel;

public class UserController5{
	

	public String queryUser(){

		UserModel user = new UserModel();
		user.setUsername("赵子龙");
		user.setUserphone("13803831229");
		
        
        ServletActionContext.getRequest().setAttribute("data", user);
        ServletActionContext.getRequest().getSession().setAttribute("user", user);
        
        return "success";
	}
	

}
